首页>代码>Spring Boot+vue项目通过docker-compose部署案例分享(前后端分离)>/【docker】- docker-compose实战之前后端分离项目部署/项目源码/bookManagerSys/src/main/java/com/cxs/controller/CategoryController.java
package com.cxs.controller;

import com.cxs.model.Book;
import com.cxs.service.CategoryService;
import com.cxs.utils.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/*
 * @Author:cxs
 * @Version 1.0
 * @Motto:放下杂念,只为迎接明天更好的自己
 * */
@RestController
@RequestMapping("/category")
@Api(tags = "书分类处理器")
public class CategoryController {
    @Autowired
    private CategoryService categoryService;

    @RequestMapping(value = "/list",method = RequestMethod.GET)
    @ApiOperation(value = "获取分列列表")
    public Result<Book> list(){
        return Result.OK("Ok",categoryService.list());
    }
}
最近下载更多
taoyi123  LV17 2023年5月5日
最代码官方  LV167 2023年5月3日
最近浏览更多
kenhomeliu  LV29 4月30日
strongning  LV3 4月5日
WBelong  LV7 3月27日
Gin19960217  LV4 3月18日
dapeng0011  LV13 2月26日
limin123  LV6 2月9日
哪里的完整版  LV7 2月1日
暂无贡献等级
kinggode  LV14 2023年12月13日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友